<template>
  <div>
    <TypeNav></TypeNav>
    <ListContainer></ListContainer>
    <TodayRecommend></TodayRecommend>
    <Rank></Rank>
    <Like></Like>
    <Floor v-for="floor in floors" :key="floor.id" :floor="floor"></Floor>
    <Brand></Brand>
  </div>

</template>

<script>
import TypeNav from "components/TypeNav"
import ListContainer from "pages/Home/ListContainer"
import Brand from "pages/Home/Brand"
import Floor from "pages/Home/Floor"
import Like from "pages/Home/Like"
import Rank from "pages/Home/Rank"
import TodayRecommend from "pages/Home/TodayRecommend"
import {mapState} from "vuex";

export default {
  name: "Home",
  computed:{
      ...mapState({
          floors: state => state.home.floors
      })
  },
  components:{
    TypeNav,
    ListContainer,
    Brand,
    Floor,
    Like,
    Rank,
    TodayRecommend
  }
}
</script>

<style scoped>

</style>
